package com.ysd.lis.service.callNum.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ysd.common.Result;
import com.ysd.lis.entity.callNum.CallWindow;
import com.ysd.lis.mapper.callNum.CallWindowMapper;
import com.ysd.lis.service.callNum.CallWindowService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wh
 * @since 2025-05-28
 */
@Service
public class CallWindowServiceImpl extends ServiceImpl<CallWindowMapper, CallWindow> implements CallWindowService {

    @Override
    public Result findWindowList() {
        List<CallWindow> list = this.list(new LambdaQueryWrapper<CallWindow>().eq(CallWindow::getDelFlag, 0).orderByAsc(CallWindow::getSeq));
        return Result.succ(1, "查询成功", list);
    }
}
